package com.kinglone.quartz;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class QuartzTest extends QuartzJobBean{  
    private String method;  
    public String getMethod() {  
        return method;  
    }  
    public void setMethod(String method) {  
        this.method = method;  
    }  
    @Override  
    protected void executeInternal(JobExecutionContext arg0) throws JobExecutionException{  
        if("testQuartz".equals(this.method)){  
            testQuartz();  
        }  
    }  
    public void testQuartz(){  
        System.out.println("测试 排程启动!!!");  
    }  
    public void init(){  
        System.out.println("========================QuartzTest Init========================");  
    }  
}  
